<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<!-- 1 1 2 3 5 8 13 21-->

<body>

</body>
<script>
    var num = parseInt(window.prompt('请输入三位数的正整数：'));
    var a = (num - num % 100) / 100
    var b = num % 100 - num % 10
    var c = (num % 10) * 100
    var res = c + b + a


    console.log(res);

</script>

</html>